﻿package Message.Game
{
    import Engine.RMI.*;
    import Framework.Serialize.*;
    import Framework.Util.*;
    import Message.Public.*;

    public class AMI_ICheckIn_setCheckIn extends RMIObject
    {

        public function AMI_ICheckIn_setCheckIn(param1:Function = null, param2:Function = null, param3:Object = null)
        {
            super(param1, param2);
            userObject = param3;
            callFunction = "setCheckIn";
            return;
        }// end function

        override public function __response(param1:SerializeStream) : void
        {
            var checkInInfo:SCheckInInfo;
            var __is:* = param1;
            try
            {
                checkInInfo = new SCheckInInfo();
                checkInInfo.__read(__is);
            }
            catch (__ex:Error)
            {
                cdeException(new Exception("ExceptionCodeSerialize", Exception.ExceptionCodeSerialize));
                return;
            }
            this.cdeResponse(checkInInfo);
            return;
        }// end function

        public function cdeResponse(param1:SCheckInInfo) : void
        {
            if (_response != null)
            {
                _response.call(null, this, param1);
            }
            return;
        }// end function

    }
}
